package org.charles.zhifou.enums;

import lombok.AllArgsConstructor;
import org.charles.zhifou.common.enums.BaseEnum;

/**
 * <h1>SQL 排序顺序枚举类</h1>
 *
 * @author charles
 * @version 1.0
 */
@AllArgsConstructor
public enum SqlSortOrderEnum implements BaseEnum {
    ASC(0, "升序"),
    DESC(1, "降序");

    private final Integer code;

    private final String value;

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getValue() {
        return value;
    }
}
